package com.ewing.busi.order.constants;

/**
 * 客户订单状态
 */
public enum PayType {

    
    PAY_ONLINE(0, "在线付款"),

    PAY_AFTER_RECEIVE(1, "货到付款");
    

    private int value;
    private String msg;

    PayType(int value, String msg) {
        this.value = value;
        this.msg = msg;
    }

    public int getValue() {
        return value;
    }

    public String getMsg() {
        return msg;
    }
    
    public static PayType getByValue(Integer value){
      if(null == value){
        return null;
      }
      
      for(PayType payWay : PayType.values()){
        if(payWay.value == value){
          return payWay;
        }
      }
      
      return null;
    }
}
